package com.shun.media.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 资源文件列表
 * </p>
 *
 * @author clever
 * @since 2021-10-18
 */
@TableName("gjyd_resource_info")
@ApiModel(value = "GjydResourceInfo对象", description = "资源文件列表")
public class GjydResourceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId
    private String rsId;

    @ApiModelProperty("资源文件仓库")
    private String rsBucket;

    @ApiModelProperty("资源文件路径(包含文件名称)")
    private String rsPath;

    @ApiModelProperty("缩略图文件路径(包含文件名称)")
    private String rsThPath;

    @ApiModelProperty("文件原始名称")
    private String rsOriginName;

    @ApiModelProperty("文件的类型（0:图片、1:视频类、2:pdf、3:其他）")
    private String rsType;

    @ApiModelProperty("存储位置(1-阿里云，2-腾讯云，3-minio，4-本地)")
    private String rsLocation;

    @ApiModelProperty("存储到oss的文件名称（无中文）")
    private String rsOssName;

    @ApiModelProperty("资源文件大小")
    private String rsSizeKb;

    @ApiModelProperty("资源文件大小")
    private Long rsSize;

    @ApiModelProperty("资源文件业务类型（例如:jpgpngmp4）")
    private String rsSuffix;

    @ApiModelProperty("机密类型(0:私有化、1:公共读、2:公共读写)")
    private String secretFlag;

    @ApiModelProperty("有缩率图(0:无、1:有)")
    private String thumbnail;

    @ApiModelProperty("乐观锁")
    private String revision;

    @ApiModelProperty("创建时间")
    private LocalDateTime dateCreated;

    @ApiModelProperty("更新时间")
    private LocalDateTime dateUpdated;

    @ApiModelProperty("创建人")
    private String createUser;

    @ApiModelProperty("修改人")
    private String updateUser;

    @ApiModelProperty("删除标识 0 正常 1 删除")
    @TableLogic
    private String delFlag;


    public String getRsId() {
        return rsId;
    }

    public void setRsId(String rsId) {
        this.rsId = rsId;
    }

    public String getRsBucket() {
        return rsBucket;
    }

    public void setRsBucket(String rsBucket) {
        this.rsBucket = rsBucket;
    }

    public String getRsPath() {
        return rsPath;
    }

    public void setRsPath(String rsPath) {
        this.rsPath = rsPath;
    }

    public String getRsThPath() {
        return rsThPath;
    }

    public void setRsThPath(String rsThPath) {
        this.rsThPath = rsThPath;
    }

    public String getRsOriginName() {
        return rsOriginName;
    }

    public void setRsOriginName(String rsOriginName) {
        this.rsOriginName = rsOriginName;
    }

    public String getRsType() {
        return rsType;
    }

    public void setRsType(String rsType) {
        this.rsType = rsType;
    }

    public String getRsLocation() {
        return rsLocation;
    }

    public void setRsLocation(String rsLocation) {
        this.rsLocation = rsLocation;
    }

    public String getRsOssName() {
        return rsOssName;
    }

    public void setRsOssName(String rsOssName) {
        this.rsOssName = rsOssName;
    }

    public String getRsSizeKb() {
        return rsSizeKb;
    }

    public void setRsSizeKb(String rsSizeKb) {
        this.rsSizeKb = rsSizeKb;
    }

    public String getRsSuffix() {
        return rsSuffix;
    }

    public void setRsSuffix(String rsSuffix) {
        this.rsSuffix = rsSuffix;
    }

    public String getSecretFlag() {
        return secretFlag;
    }

    public void setSecretFlag(String secretFlag) {
        this.secretFlag = secretFlag;
    }

    public String getThumbnail() {
        return thumbnail;
    }

    public void setThumbnail(String thumbnail) {
        this.thumbnail = thumbnail;
    }

    public String getRevision() {
        return revision;
    }

    public void setRevision(String revision) {
        this.revision = revision;
    }

    public LocalDateTime getDateCreated() {
        return dateCreated;
    }

    public void setDateCreated(LocalDateTime dateCreated) {
        this.dateCreated = dateCreated;
    }

    public LocalDateTime getDateUpdated() {
        return dateUpdated;
    }

    public void setDateUpdated(LocalDateTime dateUpdated) {
        this.dateUpdated = dateUpdated;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Long getRsSize() {
        return rsSize;
    }

    public void setRsSize(Long rsSize) {
        this.rsSize = rsSize;
    }

    @Override
    public String toString() {
        return "GjydResourceInfo{" +
        "rsId=" + rsId +
        ", rsBucket=" + rsBucket +
        ", rsPath=" + rsPath +
        ", rsThPath=" + rsThPath +
        ", rsOriginName=" + rsOriginName +
        ", rsType=" + rsType +
        ", rsLocation=" + rsLocation +
        ", rsOssName=" + rsOssName +
        ", rsSizeKb=" + rsSizeKb +
        ", rsSuffix=" + rsSuffix +
        ", secretFlag=" + secretFlag +
        ", thumbnail=" + thumbnail +
        ", revision=" + revision +
        ", dateCreated=" + dateCreated +
        ", dateUpdated=" + dateUpdated +
        ", createUser=" + createUser +
        ", updateUser=" + updateUser +
        ", delFlag=" + delFlag +
        "}";
    }
}
